Setting up the Parallel Read
This chapter describes how to set up parallel read processing for big tables. You can set the parallel read for read tasks, for delta read tasks and for preselection tasks related to standard (i.e. not ABAP-based) derivation paths. The reason for read task parallelization is to split a table with too many records into smaller data sets, called DTS partitions, to process them in parallel. For example, if 10 DTS partitions are created for one table, the data selection can be executed in 10 parallel background processes and should be processed 10 times faster.
Proceed as follows to set up the parallelization:
- To automatically set up read task parallelization, execute the step Analyze technical settings of tables.
-
Select the option Enable parallel read in the section Automatic parallel read setup.
-
Enter the table size and package size. The package size defines number of partitions.
NOTEYou can define an individual table parallelization in the step Maintain technical settings by clicking the button in the Parallel read column. Similarly, you can define the delta read tasks by clicking the button in the Shadow partitioning column. The number of partitions is not defined by the package size in kB, but either by a fixed number (Number of partitions) or calculated by the number of rows (Rows per partitions). The shadow partitioning must be set separately for each table, if needed.
To set up preselection task parallelization, execute the step Maintain DTS objects, open the Path Grid view by clicking the button in the ALV tree toolbar, find the chosen derivation path, and click the button in the Parallel derivation column.
-
After the parallelization is set up, the entire parallelization needs to be built. For this purpose, the parallelization tasks must be scheduled and executed. These steps differ based on the tasks that are parallelized:
-
Read parallelization tasks:
-
These tasks are generated in the step Generate tasks for parallel read builder.
-
Parallelization is built in the step Execute parallel read builder.
-
-
Delta read parallelization tasks:
-
These tasks are generated in the step(s) Create initial load or Create delta <#nnn> depending on the delta. You can execute this step multiple times. It will not generate a new delta if the step was already executed.
-
Parallelization is built in the step Execute parallel read for delta <#nnn>.
-
-
Preselection tasks:
-
Tasks are generated in the step Generate tasks for parallel derivation builder.
-
Parallelization is built in the step Execute parallel derivation builder.
-
-
-
Optional: Build the parallelization based on the preselection results.
-
Execute the preselection. For more information, see the step Execute and monitor preselection.
-
Select the option Use preselection.
-
NOTE The last portion will be set to be open-ended to ensure that new data is covered during the downtime execution.WARNING The preselection will need to be executed in the downtime again.
-
-
Build the parallel portions in the background by executing either the step Execute parallel read builder or Execute parallel derivation builder.